package com.example.demo.Gmail.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document(collection = "mailInbox")
@ApiModel(value="messageModel",description="邮箱内容")
public class MessageModel  {
    @ApiModelProperty(name = "emailAddress",value = "邮箱地址",example = "zhangxuan321@gmail.com")
    private String emailAddress;
    @Id
    @ApiModelProperty(name = "messageId",value = "邮件id",example = "2233")
    private String messageId;
    @ApiModelProperty(name = "userName",value = "用户",hidden = true)
    private String userName;
    @ApiModelProperty(name = "From",value = "发件人")
    private String From;
    @ApiModelProperty(name = "To",value = "收件人")
    private String To  ;
    @ApiModelProperty(name = "Cc",value = "抄送人")
    private String Cc;
    @ApiModelProperty(name = "subject",value = "主题",example = "主题")
    private String subject;

    private String intnetdata;

    private String plain;
    private String html;

    private Integer status;
    @ApiModelProperty(name = "attachMentModels",value = "附件数组")
    private List<AttchmentModel> attachMentModels;

    private String label;


    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getFrom() {
        return From;
    }

    public void setFrom(String from) {
        From = from;
    }

    public String getTo() {
        return To;
    }

    public void setTo(String to) {
        To = to;
    }

    public String getCc() {
        return Cc;
    }

    public void setCc(String cc) {
        Cc = cc;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getIntnetdata() {
        return intnetdata;
    }

    public void setIntnetdata(String intnetdata) {
        this.intnetdata = intnetdata;
    }

    public String getPlain() {
        return plain;
    }

    public void setPlain(String plain) {
        this.plain = plain;
    }

    public String getHtml() {
        return html;
    }

    public void setHtml(String html) {
        this.html = html;
    }

    public List<AttchmentModel> getAttachMentModels() {
        return attachMentModels;
    }

    public void setAttachMentModels(List<AttchmentModel> attachMentModels) {
        this.attachMentModels = attachMentModels;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmailAddress() { return emailAddress; }

    public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; }
}
